#include "JctoDate.h"
#include "hxPrintf.h"
#include <time.h>
#include <stdio.h>

void jctoDateGetString(char dateString[])
{
    time_t timestamp;
    struct tm*p;
    time(&timestamp);
    p=localtime(&timestamp);
    hxSPrintf(dateString,"%04d-%02d-%02d-%02d-%02d-%02d",(1900+p->tm_year),(1+p->tm_mon),p->tm_mday,p->tm_hour,p->tm_min,p->tm_sec);
}
